﻿using System;
using YNTK.Common.Enum;
using YNTK.Common.Filter;
using YNTK.Dependency;

namespace YNTK.Message.Entitys.Dto.Message
{
    /// <summary>
    /// 查询通知公告请求模型
    /// </summary>
    [SuppressSniffer]
    public class QueryMessageFilterRequestModle: PageBaseRequestModel
    {
        /// <summary>
        /// 机构id
        /// </summary>
        public string mechanismId { get; set; } = string.Empty;

        /// <summary>
        /// 消息类型(null.全部 0.平台公告 1.通知公告 2.系统消息 3.私信消息)
        /// </summary>
        public MessageTypeEnum? type { get; set; }

        /// <summary>
        /// 接收对象类型(null.全部 0.所有人 1.本机构 2.指定人员 3.特定机构)
        /// </summary>
        public NoticeEnum? notice { get; set; }

        /// <summary>
        /// 是否阅读(null.全部 false.未读 true.已读)
        /// </summary>
        public bool? isRead { get; set; }

        /// <summary>
        /// 发送时间-起
        /// </summary>
        public DateTime? startTime { get; set; } = null;

        /// <summary>
        /// 发送时间-止
        /// </summary>
        public DateTime? endTime { get; set; } = null;

        /// <summary>
        /// 模糊查询,标题
        /// </summary>
        /// <example></example>
        public string keyword { get; set; } = string.Empty;
    }
}
